package com.yhy.common.core.result;

import lombok.AllArgsConstructor;
import lombok.Getter;

import java.io.Serializable;

/**
 * @author haoxr
 * 2020-06-23
 **/
@Getter
@AllArgsConstructor
public enum ResultEnum implements Serializable {

    INTERNAL_SERVER_ERROR(100001, "服务器异常"),
    CLIENT_UNAVAILABLE(100002, "目标地址不可用: "),
    AUTH_ERROR(100003, "目标地址不可用: "),
    FAILED_PARSE_USER_INFORMATION(100004, "解析用户信息失败"),
    ACCESS_UNAUTHORIZED(100005, "访问未授权"),
    TOKEN_INVALID_OR_EXPIRED(100006, "token无效或已过期"),
    TOKEN_ACCESS_FORBIDDEN(100007, "token已被禁止访问"),

    ;

    private final Integer code;
    private final String msg;

}
